package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.IPlanConfigDao;
import com.guoxue.domain.PlanConfigVo;
import com.guoxue.service.IPlanConfigService;
@Service("planConfigService")
public class PlanConfigServiceImpl implements IPlanConfigService {
	
	@Resource
	private IPlanConfigDao planConfigDao;

	@Override
	public void savePlanConfig(PlanConfigVo pc) {
		planConfigDao.savePlanConfig(pc);
	}

	@Override
	public List<PlanConfigVo> getPlanConfigList() {
		return planConfigDao.getPlanConfigList();
	}

	@Override
	public void deletePlanConfig(int id) {
		planConfigDao.deletePlanConfig(id);
	}

	@Override
	public List<PlanConfigVo> getPlanConfigListByPlan(int beginId, int endId) {
		return planConfigDao.getPlanConfigListByPlan(beginId, endId);
	}

	@Override
	public PlanConfigVo getPlanConfig(int planId) {
		return planConfigDao.getPlanConfig(planId);
	}

}
